//
//  SchedulePickerCell.swift
//  EyeVisionForDoctors
//
//  Created by PMC on 2020/3/2.
//  Copyright © 2020 tao Tao. All rights reserved.
//

import UIKit

class SchedulePickerCell: UITableViewCell {

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        
        titleLabel.textColor = selected ? .main : .textDark
    }
    
    func configure(with vm: DoctorScheduleViewModel) {
        titleLabel.textColor = vm.status == .filled ? .textLight : .textDark
        titleLabel.text = vm.scheduleTime
        departmentLabel.text = vm.departmentName
    }
    
    @IBOutlet private weak var titleLabel: UILabel!
    @IBOutlet private weak var departmentLabel: UILabel!
    
}
